 var validateUsername = (rule, value, callback) => {
      if (value == "") {
        callback(new Error("请输入员工名"));
      } else {
        callback();
      }
    };
    var validateAge = (rule, value, callback) => {
      if (value === "") {
        callback(new Error("请输入年龄"));
      } else {
        callback();
      }
    };
    var validatGender = (rule, value, callback) => {
      if (value === "") {
        callback(new Error("请选择性别"));
      } else {
        callback();
      }
    };
    var validateDepartment = (rule, value, callback) => {
      if (value === "") {
        callback(new Error("请选择部门"));
      } else {
        callback();
      }
    };
    var validateBirthday = (rule, value, callback) => {
      if (value === "") {
        callback(new Error("请输入生日"));
      } else {
        callback();
      }
    };
    var validateState = (rule, value, callback) => {
      if (value === "") {
        callback(new Error("请选择职位"));
      } else {
        callback();
      }
    };
    var validateSalary = (rule, value, callback) => {
      if (value === "") {
        callback(new Error("请输入薪水"));
      } else {
        callback();
      }
    };
var validateDegree = (rule, value, callback) => {
    if (value === "") {
        callback(new Error("请选择学历"));
    } else {
        callback();
    }
};